A Pedagogical Evaluation and Discussion about the Lack of Cohesion in Method (LCOM) Metric Using Field Experiment

نویسنده

  • Ezekiel Okike
چکیده

Chidamber and Kemerer first defined a cohesion measure for object-oriented software – the Lack of Cohesion in Methods (LCOM) metric. This paper presents a pedagogic evaluation and discussion about the LCOM metric using field data from three industrial systems. System 1 has 34 classes, System 2 has 383 classes and System 3 has 1055 classes. The main objectives of the study were to determine if the LCOM metric was appropriate in the measurement of class cohesion and the determination of properly and improperly designed classes in the studied systems. Chidamber and Kemerer’s suite of metric was used as metric tool. Descriptive statistics was used to analyze results. The result of the study showed that in System 1, 78.8% (26 classes) were cohesive; System 2 54% (207 classes) were cohesive; System 3 30% (317 classes) were cohesive. We suggest that the LCOM metric measures class cohesiveness and was appropriate in the determination of properly and improperly designed classes in the studied system.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Proposal for Normalized Lack of Cohesion in Method (LCOM) Metric Using Field Experiment

Chidamber and Kemerer first defined a cohesion measure for object-oriented software – the Lack of Cohesion in Methods (LCOM) metric. One of the critique of the LCOM metric is that the metric does not yield normalized or standardized values, and as such, the metric does not seem appealing to a section of the software engineering community. This paper presents an approach for normalizing the LCOM...

متن کامل

A Class Cohesion Metric For Object-Oriented Designs

Cohesion is a measure of relatedness or consistency in functionality of a software component. It is a highly desirably design characteristic because it measures separation of responsibilities, independence of components, and control of complexity. Cohesion has a significant effect on a design’s understandability, effectiveness and adaptability. An early evaluation of design components for cohes...

متن کامل

Observations on Lack of Cohesion Metrics

Lack of Cohesion Metric (LCOM) is perhaps the most used metric when trying to measure the goodness of a class written in some object-oriented language. We apply the basic LCOM metric to the Java SDK 5.0 and Eclipse libraries. LCOM gives a bad value for most of the classes. We study the reasons and characterize sets of classes for which one should not apply LCOM to determine the goodness of an i...

متن کامل

A Practical Look at the Lack of Cohesion in Methods Metric

Software metrics for the procedural software development paradigm have been extensively studied. Metrics such as McCabe's cyclomatic complexity metric 1 and Halstead's Software Science metrics 2 are well known and frequently used to measure software complexity in the procedural paradigm. More recently, software metrics that are tailored to the measurement of design complexity in the object-orie...

متن کامل

Improving Object-Oriented Lack-of-Cohesion Metric by Excluding Special Methods

Classes are the basic units in object-oriented programs, and therefore, their quality has impact on the overall quality of the software. Class cohesion is a key quality factor, and it refers to the degree of relatedness of class attributes and methods. Software developers use class cohesion measure to assess the quality of their products and to guide the restructuring of poorly designed classes...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1004.3277  شماره 

صفحات  -

تاریخ انتشار 2010